import App from './App'
//引入vuex
import store from '@/store'
// #ifndef VUE3
import Vue from 'vue'
import request from '@/network/request.js'
import uView from "uview-ui";
import  '@/util/requestInterceptor.js'
import music from '@/util/musicControl.js'
Vue.use(uView);
Vue.config.productionTip = false
//把vuex定义成全局组件
Vue.prototype.$store = store
Vue.prototype.$request=request
Vue.prototype.$music=music
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app,
	//挂载
	    store
  }
}
// #endif